$(document).ready(function() {
	$('#txtTitle_Test').textLimit(50);
    $('.testimonials').addClass('active');
    $("#txtTitle_Test").focus(function ()
    {
        if($.getURLParam("testimonial_id")==null) {
            initClearDefaultText();	
        }
    });
});

/*var validator = new Validator();
    if(($.getURLParam("tabokIndex")==1))
	{
		validator.addField(new Field('txtTitle_Test','Please enter a Title (mandatory field)') );
		validator.addField(new Field('txtContent_Test','Please enter some Text Content (mandatory field)') );
	}*/
function validate_testimonials()
{
    if(document.getElementById('MM_insert').value=='formTestimonials')
    {
        var msg='';
        if(document.getElementById('txtTitle_Test').value=='')msg+='Please enter a Title (mandatory field)';
        else if(document.getElementById('txtContent_Test').value=='')msg+='Please enter some Text Content (mandatory field)';
        if( msg!='') {
            alert(msg);
            return false;
        } else { 
            return true;
        }
    }
}

//v3.0
function MM_jumpMenu(targ,selObj,restore){
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  
    if (restore) {
        selObj.selectedIndex=0;
    }
  
}